package com.zhentao.PollutionPredictio.model.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zhentao.PollutionPredictio.model.mapper.ChemicalFactoryMapper;
import com.zhentao.PollutionPredictio.model.service.IChemicalFactoryService;
import com.zhentao.pojo.ChemicalFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 化工厂信息表 服务实现类
 * </p>
 *
 * @author 柴硕林
 * @since 2025-09-23
 */
@Service("chemicalFactoryServiceImpl")
@Primary
public class ChemicalFactoryServiceImpl implements IChemicalFactoryService {
    
    @Autowired
    private ChemicalFactoryMapper chemicalFactoryMapper;
    
    @Override
    public List<ChemicalFactory> findAllFactory() {
        return chemicalFactoryMapper.selectList(new QueryWrapper<ChemicalFactory>().eq("status",1));
    }
}
